package config

type NacosStruct struct {
	Namespace string `mapstructure:"namespace"`

	ServerConfig struct {
		ContextPath string `mapstructure:"context-path"`
		IpAddr      string `mapstructure:"ip-addr"`
		Port        int    `mapstructure:"port"`
		Scheme      string `mapstructure:"scheme"`
	} `mapstructure:"server-config"`

	ClientConfig struct {
		NamespaceId         string `mapstructure:"namespace-id"`
		TimeoutMs           int    `mapstructure:"timeout-ms"`
		NotLoadCacheAtStart bool   `mapstructure:"not-load-cache-at-start"`
		LogDir              string `mapstructure:"log-dir"`
		CacheDir            string `mapstructure:"cache-dir"`
		LogLevel            string `mapstructure:"log-level"`
	} `mapstructure:"client-config"`

	ConfigParam struct {
		DataId string `mapstructure:"data-id"`
		// Group  string `mapstructure:"group"`
	} `mapstructure:"config-param"`
}
